From b29b9b7a3daf1d66db291d50faf1c04e70a82077 Mon Sep 17 00:00:00 2001 From: Giles Cope Date: Tue, 20 Jun 2017 23:14:15 +0100 Subject: [PATCH] Prep for asser_eq failure msg format change. --- tests/test.rs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tests/test.rs b/tests/test.rs index c05593d14..6e6faed3f 100644 --- a/tests/test.rs +++ b/tests/test.rs @@ -215,10 +215,11 @@ test test_hello ... FAILED failures: ---- test_hello stdout ---- -thread 'test_hello' panicked at 'assertion failed: \ - `(left == right)` (left: \ - `\"hello\"`, right: `\"nope\"`)', src[/]foo.rs:12 -") +thread 'test_hello' panicked at 'assertion failed:[..]") + .with_stdout_contains("[..]`(left == right)`[..]") + .with_stdout_contains("[..]left: `\"hello\"`,[..]") + .with_stdout_contains("[..]right: `\"nope\"`[..]") + .with_stdout_contains("[..]src[/]foo.rs:12[..]") .with_stdout_contains("\ failures: test_hello -- 2.30.2